package zuoye;

import java.util.HashSet;
import java.util.Random;
import java.util.Set;

public class zuoye11 {
	public static void main(String[] args){
		Set<Integer> newNum = new HashSet<>();
		Random rnd=new Random();
		int count = 6;
		do
		{
			int num= rnd.nextInt(100)+1;
			newNum.add(num);
		}while(newNum.size()<count);
		
		for (int num : newNum) {
            System.out.println(num);
        }
	}
}
